home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / amiga / fractal / fcloud.arc / w_sup.c < prev   
Encoding:
C/C++ Source or Header  |  1989-11-05  |  790 b   |  39 lines

  1. #include <exec/types.h>
  2. #include <intuition/intuition.h>
  3.  
  4. /* make_window() will open a window on the specifeid screen and with the
  5.                   supplied characteristics.                */
  6.  
  7. make_window(x,y,w,h,name,flags,color0,color1,screen)
  8. SHORT x,y,w,h;
  9. UBYTE *name,color0,color1;
  10. ULONG flags;
  11. struct Screen *screen;
  12. {
  13.     struct NewWindow nw;
  14.  
  15.     nw.LeftEdge = x;
  16.     nw.TopEdge = y;
  17.     nw.Width = w;
  18.     nw.Height = h;
  19.     nw.DetailPen = color0;
  20.     nw.BlockPen = color1;
  21.     nw.Title = name;
  22.     nw.Flags = flags;
  23.     nw.IDCMPFlags = CLOSEWINDOW | VANILLAKEY;
  24.     if(screen==NULL)
  25.         nw.Type = WBENCHSCREEN;
  26.     else { 
  27.         nw.Type = CUSTOMSCREEN;
  28.         nw.Screen = screen;
  29.     }
  30.     nw.FirstGadget = NULL;
  31.     nw.CheckMark = NULL;
  32.     nw.BitMap = NULL;
  33.     nw.MinWidth = 0;
  34.     nw.MaxWidth = 0;
  35.     nw.MinHeight = 0;
  36.     nw.MaxHeight = 0;
  37.  
  38.     return(OpenWindow(&nw));
  39. }